package com.example.test.service;

import com.example.test.entity.Look;
import com.example.test.mapper.LookMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LookService {

    @Autowired
    private LookMapper lookMapper;

    public int createLook(Look look) {
        return lookMapper.insertLook(look);
    }

    public List<Look> getAllLooks() {
        return lookMapper.getAllLooks();
    }

    public List<Look> getLastSixLooks() {
        return lookMapper.getLastSixLooks();
    }
}

